package org.a;

import java.util.HashSet;
import java.util.Set;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class JedisTest {
	public static void main(String[] args) {
	
		Jedis jedis=new Jedis("172.16.8.130",6973);
		jedis.auth("HongTu56@123");
        String key="user*";
        Set<String> bs =jedis.keys(key);
        String[] as = bs.toArray(new String[0]);
        jedis.del(as);
        System.out.println();
	}
}
